Espressif Systems /ESP32-S2 /SPI0 /USER

Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text

Interpret as USER

31 2827 2423 2019 1615 1211 87 43 0 0 0 0 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 (DOUTDIN)DOUTDIN 0 (QPI_MODE)QPI_MODE 0 (OPI_MODE)OPI_MODE 0 (TSCK_I_EDGE)TSCK_I_EDGE 0 (CS_HOLD)CS_HOLD 0 (CS_SETUP)CS_SETUP 0 (RSCK_I_EDGE)RSCK_I_EDGE 0 (CK_OUT_EDGE)CK_OUT_EDGE 0 (RD_BYTE_ORDER)RD_BYTE_ORDER 0 (WR_BYTE_ORDER)WR_BYTE_ORDER 0 (FWRITE_DUAL)FWRITE_DUAL 0 (FWRITE_QUAD)FWRITE_QUAD 0 (FWRITE_OCT)FWRITE_OCT 0 (USR_CONF_NXT)USR_CONF_NXT 0 (SIO)SIO 0 (USR_HOLD_POL)USR_HOLD_POL 0 (USR_DOUT_HOLD)USR_DOUT_HOLD 0 (USR_DIN_HOLD)USR_DIN_HOLD 0 (USR_DUMMY_HOLD)USR_DUMMY_HOLD 0 (USR_ADDR_HOLD)USR_ADDR_HOLD 0 (USR_CMD_HOLD)USR_CMD_HOLD 0 (USR_PREP_HOLD)USR_PREP_HOLD 0 (USR_MISO_HIGHPART)USR_MISO_HIGHPART 0 (USR_MOSI_HIGHPART)USR_MOSI_HIGHPART 0 (USR_DUMMY_IDLE)USR_DUMMY_IDLE 0 (USR_MOSI)USR_MOSI 0 (USR_MISO)USR_MISO 0 (USR_DUMMY)USR_DUMMY 0 (USR_ADDR)USR_ADDR 0 (USR_COMMAND)USR_COMMAND

Description

SPI USER control register

Fields

DOUTDIN

Set the bit to enable full duplex communication. 1: enable 0: disable. Can be configured in CONF state.

QPI_MODE

Both for master mode and slave mode. 1: spi controller is in QPI mode. 0: others. Can be configured in CONF state.

OPI_MODE

Just for master mode. 1: spi controller is in OPI mode (all in 8-bit mode). 0: others. Can be configured in CONF state.

TSCK_I_EDGE

In the slave mode, this bit can be used to change the polarity of tsck. 0: tsck = spi_ck_i. 1:tsck = !spi_ck_i.

CS_HOLD

spi cs keep low when spi is in done phase. 1: enable 0: disable. Can be configured in CONF state.

CS_SETUP

spi cs is enable when spi is in prepare phase. 1: enable 0: disable. Can be configured in CONF state.

RSCK_I_EDGE

In the slave mode, this bit can be used to change the polarity of rsck. 0: rsck = !spi_ck_i. 1:rsck = spi_ck_i.

CK_OUT_EDGE

the bit combined with SPI_DOUT_MODE register to set mosi signal delay mode. Can be configured in CONF state.

RD_BYTE_ORDER

In read-data (MISO) phase 1: big-endian 0: little_endian. Can be configured in CONF state.

WR_BYTE_ORDER

In command address write-data (MOSI) phases 1: big-endian 0: litte_endian. Can be configured in CONF state.

FWRITE_DUAL

In the write operations read-data phase is in 2-bit mode. Can be configured in CONF state.

FWRITE_QUAD

In the write operations read-data phase is in 4-bit mode. Can be configured in CONF state.

FWRITE_OCT

In the write operations read-data phase is in 8-bit mode. Can be configured in CONF state.

USR_CONF_NXT

1: Enable the DMA CONF phase of next seg-trans operation, which means seg-trans will continue. 0: The seg-trans will end after the current SPI seg-trans or this is not seg-trans mode. Can be configured in CONF state.

SIO

Set the bit to enable 3-line half duplex communication mosi and miso signals share the same pin. 1: enable 0: disable. Can be configured in CONF state.

USR_HOLD_POL

It is combined with hold bits to set the polarity of spi hold line 1: spi will be held when spi hold line is high 0: spi will be held when spi hold line is low. Can be configured in CONF state.

USR_DOUT_HOLD

spi is hold at data out state the bit are combined with SPI_USR_HOLD_POL bit. Can be configured in CONF state.

USR_DIN_HOLD

spi is hold at data in state the bit are combined with SPI_USR_HOLD_POL bit. Can be configured in CONF state.

USR_DUMMY_HOLD

spi is hold at dummy state the bit are combined with SPI_USR_HOLD_POL bit. Can be configured in CONF state.

USR_ADDR_HOLD

spi is hold at address state the bit are combined with SPI_USR_HOLD_POL bit. Can be configured in CONF state.

USR_CMD_HOLD

spi is hold at command state the bit are combined with SPI_USR_HOLD_POL bit. Can be configured in CONF state.

USR_PREP_HOLD

spi is hold at prepare state the bit are combined with SPI_USR_HOLD_POL bit. Can be configured in CONF state.

USR_MISO_HIGHPART

read-data phase only access to high-part of the buffer SPI_BUF8~SPI_BUF17. 1: enable 0: disable. Can be configured in CONF state.

USR_MOSI_HIGHPART

write-data phase only access to high-part of the buffer SPI_BUF8~SPI_BUF17. 1: enable 0: disable. Can be configured in CONF state.

USR_DUMMY_IDLE

spi clock is disable in dummy phase when the bit is enable. Can be configured in CONF state.

USR_MOSI

This bit enable the write-data phase of an operation. Can be configured in CONF state.

USR_MISO

This bit enable the read-data phase of an operation. Can be configured in CONF state.

USR_DUMMY

This bit enable the dummy phase of an operation. Can be configured in CONF state.

USR_ADDR

This bit enable the address phase of an operation. Can be configured in CONF state.

USR_COMMAND

This bit enable the command phase of an operation. Can be configured in CONF state.

Links

() ()